import request from '@/utils/request'

// 查询ex_study_count列表
export function listEx_study_count(query) {
  return request({
    url: '/ex/ex_study_count/list',
    method: 'get',
    params: query
  })
}

export function get_study_count_by_stu(userId){
  return request({
    url: '/ex/ex_study_count/get-study-count-by-stu/'+userId,
    method: 'get'
  })
}

// 查询ex_study_count详细
export function getEx_study_count(id) {
  return request({
    url: '/ex/ex_study_count/' + id,
    method: 'get'
  })
}

// 新增ex_study_count
export function addEx_study_count(data) {
  return request({
    url: '/ex/ex_study_count',
    method: 'post',
    data: data
  })
}

// 修改ex_study_count
export function updateEx_study_count(data) {
  return request({
    url: '/ex/ex_study_count',
    method: 'put',
    data: data
  })
}

// 删除ex_study_count
export function delEx_study_count(id) {
  return request({
    url: '/ex/ex_study_count/' + id,
    method: 'delete'
  })
}
